package com.bai.ad.dao;

import com.bai.ad.entity.AdUnit;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * ClassName AdUnitrepository
 *
 * @author Bai
 * @version 1.0
 * @date 2019/2/18 0018 下午 23:23
 **/
public interface AdUnitRepository extends JpaRepository<AdUnit, Long> {

    AdUnit findByPlanIdAndUnitName(Long planId, String unitName);

    List<AdUnit> findAllByUnitStatus(Integer unitStatus);
}
